//
//  CButtonUI.h
//  beast_tamer
//
//  Created by chiawei.tseng on 13/2/6.
//
//

#ifndef beast_tamer_CButtonUI_h
#define beast_tamer_CButtonUI_h

#include "CBaseUI.h"
//#include "IInputListen.h"
#include "CInputAction.h"


struct BUTTON_INPUT_DATA : public INPUT_DATA
{
    
};

class CButtonUI : public CBaseUI , public CInputAction , public CCTouchDelegate
{
public:
    
    static CButtonUI* CreateButtonUI(const char *spName , const fPoint &point , INPUT_ID);
    
    CButtonUI();
    
    virtual ~CButtonUI();
    
    virtual bool init();
    
    virtual void InitWithData(const fPoint &point , INPUT_ID);
    
    virtual void HandlResult(void* data);
    
    virtual void onEnter();
    
    virtual void onExit();
    
    virtual void ccTouchesEnded(CCSet *pTouches, CCEvent *pEvent) ;
    
    //virtual void update();
    
    
protected:
    
    
};

#endif
